package centralRepository;

/**
 * Holder class for : ServerObject
 * 
 * @author OpenORB Compiler
 */
final public class ServerObjectHolder
        implements org.omg.CORBA.portable.Streamable
{
    /**
     * Internal ServerObject value
     */
    public centralRepository.ServerObject value;

    /**
     * Default constructor
     */
    public ServerObjectHolder()
    { }

    /**
     * Constructor with value initialisation
     * @param initial the initial value
     */
    public ServerObjectHolder(centralRepository.ServerObject initial)
    {
        value = initial;
    }

    /**
     * Read ServerObject from a marshalled stream
     * @param istream the input stream
     */
    public void _read(org.omg.CORBA.portable.InputStream istream)
    {
        value = ServerObjectHelper.read(istream);
    }

    /**
     * Write ServerObject into a marshalled stream
     * @param ostream the output stream
     */
    public void _write(org.omg.CORBA.portable.OutputStream ostream)
    {
        ServerObjectHelper.write(ostream,value);
    }

    /**
     * Return the ServerObject TypeCode
     * @return a TypeCode
     */
    public org.omg.CORBA.TypeCode _type()
    {
        return ServerObjectHelper.type();
    }

}
